-
Notifications
You must be signed in to change notification settings - Fork 39
[MOB-9064] JWT #740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: new-arch/master
Are you sure you want to change the base?
[MOB-9064] JWT #740
Conversation
… RNIterableAPIModule
…AppMessage.getMessageId()
…sses' into jwt/MOB-10947-task-3-android-retrypolicy-config-at-android-br
…in Iterable class
…sses' into jwt/MOB-10947-task-3-android-retrypolicy-config-at-android-br
…sses' into jwt/MOB-10947-task-3-android-retrypolicy-config-at-android-br
…reReason enum values
…sses' into jwt/MOB-10947-task-3-android-retrypolicy-config-at-android-br
…line configuration
…sses' into jwt/MOB-10947-task-3-android-retrypolicy-config-at-android-br
…gistration in AppDelegate
…n ReactIterableAPI
…terableAppProvider
Diff Coverage: The code coverage on the diff in this pull request is 78.8%. Total Coverage: This PR will increase coverage by 1.42%. File Coverage Changes
🛟 Help
This is from Qlty Cloud, the successor to Code Climate Quality. Learn more. |
2 new issues
This is from Qlty Cloud, the successor to Code Climate Quality. Learn more. |
…lure' into jwt/MOB-12231-create-an-iterableapi-class-for-api-calls
…etrypolicy-ts-classes
…sses' into jwt/MOB-10947-task-3-android-retrypolicy-config-at-android-br
…oid-br' into jwt/MOB-11032-task-4-ios-bridge-retrypolicy-and-authfailure
…e-and-retrypolicy-ts-classes [MOB-10946] Update JWT in ts
…cy-config-at-android-br
…lure' into jwt/MOB-12231-create-an-iterableapi-class-for-api-calls
…trypolicy-config-at-android-br [MOB-10947][SDK-88] Configure JWT for Android
…olicy-and-authfailure
…-retrypolicy-and-authfailure [MOB-11032] configure JWT for iOS
…ass-for-api-calls
Co-authored-by: Copilot <[email protected]>
…eapi-class-for-api-calls [MOB-12231] Put all calls to the native layer in a class called IterableApi
private func setupUserNotificationCenter() { | ||
UNUserNotificationCenter.current().delegate = self | ||
UNUserNotificationCenter.current().getNotificationSettings { settings in | ||
if settings.authorizationStatus != .authorized { | ||
ITBInfo("Not authorized") | ||
// not authorized, ask for permission | ||
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge, .sound]) { success, _ in | ||
ITBInfo("auth: \(success)") | ||
if success { | ||
DispatchQueue.main.async { | ||
UIApplication.shared.registerForRemoteNotifications() | ||
} | ||
} | ||
// TODO: Handle error etc. | ||
} | ||
} else { | ||
// already authorized | ||
ITBInfo("Already authorized") | ||
DispatchQueue.main.async { | ||
UIApplication.shared.registerForRemoteNotifications() | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔹 JIRA Ticket(s) if any
✏️ Description
Add JWT functionality to sdk
This contains the following PRs:
This solves the following client issues: